package week03.holiday;

import java.util.List;

/**
 * Created by zhangxiaokun on 2018/2/8.
 */
public class Client {
    public void constructPlaner() {
        AbstractBuilder builder = new VacationBuilder();
        builder.buildDay();

        //假期第1天
        builder.addDay();
        builder.addHotel(1, "7天酒店");
        builder.addMeals(1, "餐厅");
        builder.addTickets(1, "迪士尼乐园");

        //假期第2天
        builder.addDay();
        builder.addHotel(2, "北京昆仑饭店 ");
        builder.addMeals(2, "两杯豆浆");
        builder.addTickets(2, "鸟巢");
        builder.addSpecalEvert(2, "看比赛");

        //假期第3天
        builder.addDay();
        builder.addHotel(3, "北京香格里拉饭店");
        builder.addTickets(3, "北京海洋馆");

        VacationPlanner vacationPlanner = builder.getVacationPlanner();
        vacationPlanner.showPlaner();

        System.out.println("\n@@@@@@@@@@@@@删除1天@@@@@@@@@@@@@@");
        //删除第1天计划
        vacationPlanner.delOneDayPlanner(1);
        vacationPlanner.showPlaner();

    }

    public static void main(String[] args) {
        Client client = new Client();
        client.constructPlaner();
    }

}
